package com.droowa.domain;

//게시판 순서
public class BoardOrder {
	int boardId;
	int orderNum;
	
	public BoardOrder() {
		super();
	}
	public BoardOrder(int boardId) {
		super();
		this.boardId = boardId;
	}
	public BoardOrder(int boardId, int orderNum) {
		super();
		this.boardId = boardId;
		this.orderNum = orderNum;
	}
	public int getBoardId() {
		return boardId;
	}
	public void setBoardId(int boardId) {
		this.boardId = boardId;
	}
	public int getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + boardId;
		result = prime * result + orderNum;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BoardOrder other = (BoardOrder) obj;
		if (boardId != other.boardId)
			return false;
		if (orderNum != other.orderNum)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "BoardOrder [boardId=" + boardId + ", orderNum=" + orderNum
				+ "]";
	}
}
